import axios from '@/utils/axios'
import {PATH_VERSON} from '@/common/constant'

export const fetchLeaveList = data => {
  return axios({
    url: PATH_VERSON + '/attend/list',
    method: 'post',
    data
  })
}

export const fetchLeaveUpdate = data => {
  return axios({
    url: PATH_VERSON + '/attend/update',
    method: 'post',
    data
  })
}
export const fetchLeaveDel = params => {
  return axios({
    url: PATH_VERSON + '/attend/del',
    params
  })
}

export const fetchLeaveEdit = params => {
  return axios({
    url: PATH_VERSON + '/attend/edit',
    params
    
  })
}